// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** 此处后端没有提供注释 POST /multi_modal/delete/pic */
export async function deletePic(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.deletePicParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>('/multi_modal/delete/pic', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /multi_modal/gen/mind_map/stream */
export async function genMindMapStream(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.genMindMapStreamParams,
  options?: { [key: string]: any }
) {
  return request<API.ServerSentEventString[]>('/multi_modal/gen/mind_map/stream', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /multi_modal/gen/picture/upload */
export async function genImgUrlByUpload(body: {}, options?: { [key: string]: any }) {
  return request<API.BaseResponseString>('/multi_modal/gen/picture/upload', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /multi_modal/gen/picture/video */
export async function genVideoByImg(body: API.GenVideoRequest, options?: { [key: string]: any }) {
  return request<API.BaseResponseString>('/multi_modal/gen/picture/video', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /multi_modal/gen/text/picture */
export async function genPictureByText(
  body: API.GenPictureRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListString>('/multi_modal/gen/text/picture', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /multi_modal/gen/text/video */
export async function genVideoByText(body: API.GenVideoRequest, options?: { [key: string]: any }) {
  return request<API.BaseResponseString>('/multi_modal/gen/text/video', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
